using Godot;

[GlobalClass]
public partial class CPhysicsSkill : CSkill
{
    public override void doHurt(NCharacter cha)
    {
        NCharacter enemy = cha.GetNodeOrNull<NCharacter>(cha.mData.mSkillTarget.mTargetPath);
        if (enemy == null)
            return;

        calHurt(cha, enemy);

        GD.Print(enemy.Name, ":", enemy.mData.mLife);
    }
}